<?php include "htmlBase/header.php"; ?>

<?php
include_once 'Entidades/EntidadeBase.php';
include_once 'Entidades/SituacaoEconomica.php';
$servicoSituacaoEconomica = new SituacaoEconomica();
$SituacaoEconomica = isset($_GET["Id"]) ? $servicoSituacaoEconomica->ObterPorId($_GET["Id"]) : new SituacaoEconomica();
?>

<div class="page">
    <div class="page-header">
        <div class="page-header-content">
            <h1>Situação Econômica <small>(Cadastro)</small></h1>
        </div>
        <div class="progress-bar" align="rigth">
            <div class="bar bg-color-blue" style="width: 75%"></div>
        </div>
    </div>
    <br/>
    <div class="page">
        <div class="page-region">
            <div class="page-region-content">

                <div class="grid" style="width: 60%; margin-left: auto; margin-right: auto;">
                    <div class="row">
                        <div class="span1">
                            <div class="tile-content">
                                <img src="imagens/appbar.money.white.png"/>
                            </div>
                        </div>

                        <div class="span3">
                            <div>
                                <h2 style="text-align: right;"><?php echo "R$ " . number_format(2000, 2); ?></h2>  
                            </div>
                        </div>
                    </div>
                </div>

                <div class="input-control" style="width: 60%; margin-left: auto; margin-right: auto;">
                    <div class="tile-content">
                        <img src="imagens/appbar.money.white.png"/>
                    </div>
                </div>

                <br/>

                <div class="input-control" style="margin-left: auto; margin-right: auto;">
                    <button class="standart default" type="submit">Salvar</button>
                    <a href="SituacaoEconomicaCadastro.php" class="button standart">Novo</a>
                    <?php
                    if ($SituacaoEconomica->Id != 0)
                    {
                        ?>
                        <a href="SituacaoEconomicaCadastro.php?Id=<?php echo $SituacaoEconomica->Id; ?>" class="button standart">Cancelar</a>
                        <?php
                    }
                    ?>


                    <a href="SituacaoEconomicaPesquisa.php" class="button standart bg-color-lighten" style="float: right">Lista</a>
                </div>


            </div>
        </div>
    </div>

</div>

<?php include "htmlBase/footer.php"; ?>
